import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/index.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
    meta:{
      title:'首页'
    }
  },
  {
    path: "/msg1",
    name: "帮忙来找茬",
    component: ()=>import('@/views/msg1.vue'),
    meta:{
      title:'帮忙来找茬'
    }
  },
  {
    path: "/msg2",
    name: "帮忙出主意",
    component: ()=>import('@/views/msg2.vue'),
    meta:{
      title:'帮忙出主意'
    }
  },
  {
    path: "/result",
    name: "中奖结果",
    component: ()=>import('@/views/result.vue'),
    meta:{
      title:'帮忙来找茬'
    }
  },
  {
    path: "/search",
    name: "查询结果",
    component: ()=>import('@/views/search.vue'),
    meta:{
      title:'查询结果'
    }
  },
  {
    path: "/rule",
    name: "查询结果",
    component: ()=>import('@/views/rule.vue'),
    meta:{
      title:'查询结果'
    }
  },
  
];

const router = new VueRouter({
  routes,
});

export default router;
